package exc;

import com.thoughtworks.selenium.SeleneseTestCase;

@SuppressWarnings("deprecation")
public class Untitled extends SeleneseTestCase {
	public void setUp() throws Exception {
		
		// setUp("http://www.baidu.com/", "*firefox");

	}

	public void testUntitled() throws Exception {
//		Selenium selenium = new Selenium("localhost",4444,"*firefox","http://www.baidu.com");
		selenium.start();
		selenium.type("q", "baidu");
		selenium.click("btnG");
		selenium.waitForPageToLoad("30000");
		selenium.click("link=百度一下，你就知道");

		assertTrue(selenium.isTextPresent("百度一 下，你就知道")); 
	}

	public void tearDown() throws Exception {
		selenium.stop();
	}
}
